﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using AccManager.Models;

namespace AccManager.Controllers
{
    public class VouchersController : Controller
    {
        // GET: Vouchers
        public ActionResult Index(int accId)
        {
            var context = new AccManagerEntities();
            var lstVocuhers = context.VoucherMasters.Where(x => x.AccId == accId).ToList();
            return View(lstVocuhers);
        }
    }
}